import { ApiProperty } from '@nestjs/swagger';

class List {
  @ApiProperty({ description: '会议室ID', required: false })
  id: number;

  @ApiProperty({ description: '会议室名字', required: false })
  name: string;

  @ApiProperty({ description: '会议室容量', required: false })
  capacity: number;

  @ApiProperty({ description: '会议室位置', required: false })
  location: string;

  @ApiProperty({ description: '设备', required: false })
  equipment: string;

  @ApiProperty({ description: '描述', required: false })
  description: string;

  @ApiProperty({ description: '是否被预订', required: false })
  isBooked: boolean;

  @ApiProperty({ description: '创建', required: false })
  createTime: Date;
}

export class MeetingListVo {
  @ApiProperty({
    type: [List],
    description: '用户列表',
    required: false,
  })
  meeting: List[];

  @ApiProperty({ description: '页码', required: false })
  pageNum: number;

  @ApiProperty({ description: '页数', required: false })
  pageSize: number;

  @ApiProperty({ description: '总数', required: false })
  total: number;
}
